#ifndef _ALLEGRO_RESOURCE_HPP_
#define _ALLEGRO_RESOURCE_HPP_
#include <allegro.h>
#include "ResourceRef.hpp"

class AllegroResource
{
public:
	AllegroResource();
	~AllegroResource();

private:
	static int m_iRefCount;		// number of references to this resource
};

//////////////////////////////////////////////////////////////////////////
class AllegroResourceRef : public ResourceRef<AllegroResource>
{
public:
    AllegroResourceRef() : ResourceRef<AllegroResource>(alloc) {}

private:
    static AllegroResource* alloc() 
    {
        return new AllegroResource();
    }
};

#endif // _ALLEGRO_RESOURCE_HPP_
